<template>
  <view class="index">
    <view class="jtop">
      <view class="status_bar">
        <!-- 这里是状态栏 -->
      </view>
      <view class="jtop_l"></view>
      <view class="jtop_c">墨盘与文档</view>
      <view class="jtop_r" @tap="to_gis">
        <image src="../../static/img/doc/ic_ellipsis.png"></image>
      </view>
      <!-- <view class="jtop_r jtop_rl" @click="jshow_pop('jtop_rl')"><image src="../../static/img/doc/ic_add.png"></image></view> -->
    </view>
    <view class="tophr"></view>
    <!-- <uni-search-bar
      placeholder="搜索"
      @confirm="search"
      class="ss"
    ></uni-search-bar> -->

    <!-- 个人盘 -->
    <view class="">
      <view class="doc_t">个人</view>
      <view class="doc_bs">
        <view
          class="doc_b noborder"
          @tap="to_pan(item.id)"
          v-for="(item, index) in userFloders"
          :key="index"
        >
          <image
            src="../../static/img/doc/ic_folder.png"
            class="doc_bl"
          ></image>
          <text class="doc_bt">{{ item.name }}</text>
        </view>
      </view>

      <!-- 项目盘 -->
      <view class="doc_t">共享</view>
      <view class="doc_bs">
        <view
          class="doc_b noborder"
          @tap="to_pan2(item.id)"
          v-for="(item, index) in projectFloders"
          :key="index"
        >
          <image
            src="../../static/img/doc/ic_folder.png"
            class="doc_bl"
          ></image>
          <text class="doc_bt">{{ item.name }}</text>
          <image
            src="../../static/img/doc/ic_info_circle.png"
            class="doc_br"
          ></image>
        </view>
      </view>

      <!-- 最近的文件列表,服务端默认只查最新的10条 -->
      <view class="doc_t">最近</view>
      <view class="doc_bs" v-if="nodata">
        <view class="doc_b" v-for="(item, index) in recentFiles" :key="index">
          <image
            src="../../static/img/doc/ic_word.png"
            class="doc_bl"
            @tap="to_about(index)"
          ></image>
          <view class="doc_b2" @tap="to_about(index)">
            <text class="doc_b2t">{{ item.name }}</text>
            <text class="doc_b2f"
              >{{ item.capacity }}KB{{
                item.updateName ? ' · ' + item.updateName : ''
              }}&nbsp·&nbsp{{ item.updateTime }}</text
            >
          </view>
          <image
            src="../../static/img/doc/ic_ellipsis 3.png"
            class="doc_br"
            @click="jshow_pop('sz')"
          ></image>
        </view>
        <!-- <view class="doc_b" @tap="to_about">
          <image src="../../static/img/doc/ic_word.png" class="doc_bl"></image>
          <view class="doc_b2">
            <text class="doc_b2t">墨斗项目需求.doc</text>
            <text class="doc_b2f">10K · 宋旋 · 05/10</text>
          </view>
          <image
            src="../../static/img/doc/ic_ellipsis 3.png"
            class="doc_br"
            @click="jshow_pop('sz')"
          ></image>
        </view>
        <view class="doc_b">
          <image src="../../static/img/doc/ic_excel.png" class="doc_bl"></image>
          <view class="doc_b2">
            <text class="doc_b2t">信息收集表.xls</text>
            <text class="doc_b2f">20K · 宋旋 · 06/02</text>
          </view>
          <image
            src="../../static/img/doc/ic_ellipsis 3.png"
            class="doc_br"
            @click="jshow_pop('sz')"
          ></image>
        </view>
        <view class="doc_b">
          <image src="../../static/img/doc/ic_pdf.png" class="doc_bl"></image>
          <view class="doc_b2">
            <text class="doc_b2t">安全技术交底多组示例.pdfc</text>
            <text class="doc_b2f">97.4M · 宋旋 · 2019/12/02</text>
          </view>
          <image
            src="../../static/img/doc/ic_ellipsis 3.png"
            class="doc_br"
            @click="jshow_pop('sz')"
          ></image>
        </view>
        <view class="doc_b noborder">
          <image
            src="../../static/img/doc/ic_file_unknowl.png"
            class="doc_bl"
          ></image>
          <view class="doc_b2">
            <text class="doc_b2t">安全技术交底多组示例</text>
            <text class="doc_b2f">97.4M · 宋旋 · 2019/12/02</text>
          </view>
          <image
            src="../../static/img/doc/ic_ellipsis 3.png"
            class="doc_br"
            @click="jshow_pop('sz')"
          ></image>
        </view> -->
      </view>
    </view>

    <!-- 弹出层 -->
    <view :class="[ashowpop ? 'tc' : 'tc hide']">
      <view class="jtop_bj" @click="jshow_pop"></view>

      <view :class="[ashowpop_jtop_rl ? 'tc_fbox' : 'tc_fbox hide']">
        <view class="tc_fboxs">
          <view class="tc_fbox_ic" @tap="changeAvatar()">
            <image src="../../static/img/doc/ic_pic.png"></image>
            <text>上传照片</text>
          </view>

          <view class="tc_fbox_ic">
            <l-file ref="lFile" @up-success="onSuccess"></l-file>

            <view @tap="onUpload">
              <image src="../../static/img/doc/ic_file.png"></image>
              <text>上传文件</text>
            </view>
          </view>
          <view class="tc_fbox_ic" @click="jshow_pop('jfolder')">
            <image src="../../static/img/doc/ic_folde2r.png"></image>
            <text>新建文件夹</text>
          </view>
        </view>
        <view class="tc_fbox_bt" @click="jshow_pop">
          取消
        </view>
      </view>

      <!-- 权限设置 -->
      <view :class="[ashowpop_sz ? 'tc_fbox' : 'tc_fbox hide']">
        <view class="tc_list">
          <view class="tc_list_t">
            权限设置
          </view>
          <view class="tc_list" @click="setbj">
            <text class="tc_list1">可编辑</text>
            <text class="tc_listtwo">· 可上传下载，编辑文件夹</text>
            <image src="../../static/img/index/ic_check.png" v-if="!bj"></image>
          </view>
          <view class="tc_list noborder" @click="setbj">
            <text class="tc_list1">仅浏览</text>
            <text class="tc_listtwo">· 仅浏览和下载，不能上传</text>
            <image src="../../static/img/index/ic_check.png" v-if="bj"></image>
          </view>
        </view>
        <view class="tc_fbox_bt" @click="jshow_pop">
          取消
        </view>
      </view>

      <!-- 新建文件夹 -->
      <view :class="[ashowpop_jfolder ? 'tc_box' : 'tc_box hide']">
        <view class="tc_boxt">
          新建文件夹
        </view>
        <view class="tc_boxtc">
          请输入文件夹名称
        </view>
        <view class="tc_boxi">
          <input
            type="text"
            placeholder="文件夹名"
            :value="name"
            @input="onKeyInput_o"
            placeholder-style="color:#CCCCCC"
          />
          <image
            src="../../static/img/ic_login_delete.png"
            class="tc_boxi_jdel hide"
          ></image>
        </view>
        <view class="tc_f">
          <view class="tc_fl" @click="jshow_pop">取消</view>
          <view class="tc_fr22" @click="jsave">确定</view>
        </view>
      </view>
    </view>

    <!-- 弹出层 -->
    <view :class="[aashowpop ? 'tc' : 'tc hide']">
      <view class="jtop_bj"></view>

      <view class="tc_box">
        <view class="tc_boxt">
          未登录
        </view>
        <view class="tc_boxtc">
          您未登录，需要登录后才能继续
        </view>
        <view class="tc_f">
          <!-- <view class="tc_fl" @click="jshow_pop">取消</view> -->
          <view class="tc_fr" @click="abtTC2">确定</view>
        </view>
      </view>
    </view>

    <view class="noc" v-if="!nodata">
      <image src="../../static/img/index/2/ic_no data_grey.png"></image>
      <span>暂无数据</span>
    </view>
  </view>
</template>

<script>
import request from '@/common/request.js';
import { mapState } from 'vuex';

import lFile from '@/components/l-file/l-file.vue';

export default {
  components: {
    lFile,
  },
  data() {
    return {
      repeat_click: true,
      ashowpop: false,
      ashowpop_sz: false,
      ashowpop_jfolder: false,
      ashowpop_jtop_rl: false,
      bj: false,
      aashowpop: false,

      nodata: false,
      items: [],
      name: '',
      jtitle: '',
      nian: '',
      yue: '',
      re: '',
      week: '',
      today: '',
      userFloders: [], // 个人文件夹
      projectFloders: [], // 共享文件夹
      recentFiles: [], // 最近的文件
    };
  },

  methods: {
    //搜索
    search(a) {
      this.data_add('1', a.value);
    },
    /**
     * 查询文件夹
     */
    handleGetFolder() {
      this.userFloders = [];
      this.projectFloders = [];
      request({
        url: `/biz/modor-folder`,
        method: 'GET',
        success: res => {
          console.log('查询当前用户的文件夹返回信息', res);
          // console.log(res.data.data.length)

          if (res.data.success == true && res.data.data) {
            if (res.data.data.length > 0) {
              res.data.data.forEach(item => {
                if (item.type == 1) {
                  this.projectFloders.push(item);
                } else {
                  this.userFloders.push(item);
                }
              });
            }
            console.log('个人文件夹', this.userFloders);
            console.log('共享文件夹', this.projectFloders);
          }
        },
        fail: () => {
          this.repeat_click = true;
          uni.showToast({
            title: '服务器开小差，请稍后~',
            icon: 'none',
          });
          return false;
        },
      });
    },
    /**
     * 查询最近文件
     */
    handleGetRecentFile() {
      this.recentFiles = [];
      request({
        url: `/biz/modor-file/recent`,
        method: 'GET',
        success: res => {
          console.log('查询最近文件返回信息', res);

          if (res.data.success == true && res.data.data) {
            if (res.data.data.length > 0) {
              this.recentFiles = res.data.data;
            }
          }
        },
        fail: () => {
          this.repeat_click = true;
          uni.showToast({
            title: '服务器开小差，请稍后~',
            icon: 'none',
          });
          return false;
        },
      });
    },
    data_add(a, b) {
      this.projectId = uni.getStorageSync('dqfull_name').id;

      var jd = {
        limit: 10000,
      };

      if (a == 1) {
        jd.content = b;
      }
      var ah = {
        'Content-Type': 'application/json',
        token: `${uni.getStorageSync('access_token')}`,
      };

      if (uni.getStorageSync('corpBaseInfoResponse')) {
        ah.corp = uni.getStorageSync('user').corpBaseInfoResponse.id;
      }
      if (uni.getStorageSync('dqfull_name')) {
        ah.project = uni.getStorageSync('dqfull_name').id;
      }

      request({
        url: `/biz/modor-file/list`,
        method: 'GET',
        data: jd,
        header: ah,
        success: res => {
          console.log('2项目列表信息', res);
          // console.log(res.data.data.length)

          if (res.data.success == true && res.data.data) {
            if (res.data.data.length > 0) {
              this.items = res.data.data;
              console.log(this.items);
              this.nodata = true;
            } else {
              this.items = '';
              this.nodata = false;
            }
          } else {
            // 					this.repeat_click = true;
            //uni.showToast({
            // 	title: res.data.msg,
            // 	icon: 'none'
            // });
          }
        },
        fail: () => {
          this.repeat_click = true;
          uni.showToast({
            title: '服务器开小差，请稍后~',
            icon: 'none',
          });
          return false;
        },
      });
    },

    // 新增文件夹
    onKeyInput_o: function(event) {
      this.name = event.detail.value;
    },

    jsave() {
      if (!this.repeat_click) {
        return;
      }
      this.repeat_click = false;

      if (!this.name) {
        this.repeat_click = true;
        uni.showToast({
          title: '请输入文件夹名称',
          icon: 'none',
        });
        return;
      }

      var jd = {
        name: this.name,
        type: 1,
        parentId: 0,
      };

      request({
        url: `/biz/modor-folder`,
        data: jd,

        method: 'POST',
        success: openIdRes => {
          console.log(openIdRes);
          if (openIdRes.data.success == true) {
            var that = this;

            // that.data_add(1);

            wx.showToast({
              title: '添加成功',
              icon: 'none',
              duration: 1000,
              success: function() {
                setTimeout(function() {
                  this.ashowpop = !this.ashowpop;
                  this.ashowpop_jtop_rl = false;
                  this.ashowpop_jfolder = false;
                }, 1500);
              },
            });
          } else {
            this.repeat_click = true;
            uni.showToast({
              title: openIdRes.data.msg,
              icon: 'none',
            });
            this.isLoading = false;
          }
        },
        fail: () => {
          this.repeat_click = true;
          uni.showToast({
            title: '服务器开小差，请稍后~',
            icon: 'none',
          });
          return false;
        },
      });
    },

    // --新增文件夹

    //文件上传
    /* 上传 */
    onUpload() {
      console.log(111111111);
      this.$refs.lFile.upload({
        // #ifdef APP-PLUS
        currentWebview: this.$mp.page.$getAppWebview(),
        // #endif
        //非真实地址，记得更换
        url: '/passport/v1/general/upload',
        //默认file,上传文件的key
        name: 'file',

        //...其他参数
      });
    },
    onSuccess(res) {
      console.log('上传成功回调=====33====', JSON.stringify(res));
      this.repeat_click = true;
      uni.showToast({
        title: JSON.stringify(res),
        icon: 'none',
      });
    },
    //---文件上传

    //图片上传
    changeAvatar() {
      var that = this;
      uni.chooseImage({
        count: 1, //默认9
        sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
        sourceType: ['camera', 'album'], //从相册选择、摄像头
        success: function(res) {
          console.log(JSON.stringify(res.tempFilePaths, res.tempFiles[0]));
          that.sctp(res.tempFilePaths, res.tempFiles[0]);
        },
      });
    },

    sctp(a, b) {
      console.log(a);
      request({
        url: '/passport/v1/general/upload', //仅为示例，非真实的接口地址
        filePath: a[0],
        name: 'file',

        formData: {
          files: [
            {
              uri: '',
            },
          ],
        },
        success: res => {
          var cc = JSON.parse(res.data);
          console.log('上传图片', cc);

          if (cc.code == 200) {
            var dd = this.jimg;
            dd.push(cc.data.url + '/' + als.dir + g_object_name);
            this.jimg = dd;
          } else {
            this.repeat_click = true;
            uni.showToast({
              title: cc.message,
              icon: 'none',
            });
          }
        },
      });
    },
    //--图片上传

    abtTC2() {
      uni.navigateTo({
        url: '../login/login',
      });
    },
    // 跳转
    to_gis() {
      // uni.navigateTo({
      // 	url: '../doc/doc_gis',
      // });
      uni.navigateTo({
        url: '../doc/doc_about',
      });
    },
    to_pan(parentFolderId) {
      uni.navigateTo({
        url: '../doc/doc_pan?parentFolderId=' + parentFolderId,
      });
    },
    to_pan2(parentFolderId) {
      uni.navigateTo({
        url: '../doc/doc_list?parentFolderId=' + parentFolderId,
      });
    },

    // 跳转
    to_about(a) {
      uni.setStorageSync('lssj', this.recentFiles[a]),
        uni.navigateTo({
          url: '../doc/doc_details',
        });
    },

    jshow_pop(a) {
      this.ashowpop = !this.ashowpop;
      this.ashowpop_jtop_rl = false;
      this.ashowpop_jfolder = false;

      console.log(a);
      if (a == 'jtop_rl') {
        this.ashowpop_jtop_rl = true;
      }
      if (a == 'jfolder') {
        this.ashowpop = true;
        this.ashowpop_jfolder = true;
      }
      if (a == 'sz') {
        this.ashowpop_sz = true;
      }
    },
    setbj() {
      this.bj = !this.bj;
    },
  },
  onShow() {
    var res = global.isLogin();
    if (!res) {
      // this.aashowpop = true;

      uni.navigateTo({
        url: '../login/login',
      });

      //    uni.showModal({
      //     title:'未登录',
      //     content:"您未登录，需要登录后才能继续",
      // 	showCancel: false,
      //     success:function(){
      //       uni.navigateTo({
      //       	url: '../login/login'
      //       });
      //     }
      //    })
    } else {
      this.aashowpop = false;
      this.data_add();
      this.handleGetFolder();
      this.handleGetRecentFile();
    }
  },
};
</script>

<style>
.tophr {
  width: 100%;
  height: 88rpx;
}

.uni-searchbar {
  box-shadow: none;
}

.tc {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: block;
}

.jtop_bj {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}

.tc_box {
  width: 540rpx;
  height: auto;
  background: #ffffff;
  border-radius: 14rpx;
  margin: 460rpx 105rpx 0;
  position: relative;
  z-index: 10001;
  overflow: hidden;
}

.tc_boxt {
  width: 100%;
  height: 44rpx;
  font-size: 36rpx;
  line-height: 44rpx;
  display: block;
  float: left;
  text-align: center;
  margin: 40rpx 0 20rpx;
  color: #000000;
}

.tc_boxtc {
  width: 100%;
  height: 36rpx;
  font-size: 28rpx;
  line-height: 36rpx;
  display: block;
  float: left;
  text-align: center;
  margin: 0rpx 0 30rpx;
  color: #666666;
}

.tc_boxi {
  width: 460rpx;
  height: 88rpx;
  background: #ffffff;
  border-radius: 8rpx;
  border: 1px solid #dddddd;
  display: block;
  float: left;
  margin: 0rpx 40rpx 22rpx 40rpx;
}

.tc_boxi input {
  width: 70%;
  height: 48rpx;
  margin: 20rpx 5%;
  font-size: 32rpx;
  color: #000000;
  float: left;
}

.tc_boxi image {
  width: 36rpx;
  height: 36rpx;
  display: block;
  float: right;
  margin: 26rpx 20rpx 0rpx 0;
}

.tc_f {
  width: 100%;
  height: 100rpx;
  display: block;
  float: left;
  border-top: 1px solid #dcdee3;
  margin: 20rpx 0 0;
}

.tc_fl {
  width: 269rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #256aff;
  display: block;
  float: left;
  border-right: 1px solid #dcdee3;
}

.tc_fr {
  width: 269rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #256aff;
  display: block;
  float: left;
}

.tc_fr2 {
  width: 269rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #eb5342;
  display: block;
  float: left;
}

.tc_fr22 {
  width: 269rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #256aff;
  display: block;
  float: left;
}

.tc_fbox {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10001;
}

.tc_fboxs {
  width: 100%;
  height: auto;
  display: block;
  float: left;
}

.tc_fbox_ic {
  width: 33.3333%;
  display: block;
  float: left;
  text-align: center;
  font-size: 28rpx;
  color: #666666;
}

.tc_fbox_ic image {
  width: 72rpx;
  height: 72rpx;
  display: block;
  float: none;
  margin: 60rpx auto 24rpx;
}

.tc_fbox_ic text {
  width: 100%;
  height: auto;
  display: block;
  float: none;
  margin: 0 auto 64rpx;
}

.tc_fbox_bt {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-top: 20rpx solid #f2f2f2;
}

.tc_list {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
}

.tc_list_t {
  width: 100%;
  height: 80rpx;
  display: block;
  float: left;
  background: #ffffff;
  font-size: 24rpx;
  color: #999999;
  line-height: 80rpx;
  margin: 0rpx 0;
  border-bottom: 1px solid #dddddd;
  text-align: center;
}

.tc_list {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  border-bottom: 1px solid #dddddd;
}

.tc_list1 {
  width: auto;
  height: auto;
  display: block;
  float: left;
  font-size: 36rpx;
  color: #000000;
  line-height: 44rpx;
  margin: 34rpx 28rpx 38rpx 30rpx;
}

.tc_listtwo {
  width: auto;
  height: auto;
  display: block;
  float: left;
  font-size: 28rpx;
  color: #999999;
  line-height: 36rpx;
  margin: 42rpx 0rpx 0rpx 0rpx;
}

.tc_list image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: right;
  margin: 36rpx 30rpx 0 0;
}

.doc_t {
  width: 690rpx;
  height: 32rpx;
  font-size: 24rpx;
  line-height: 32rpx;
  color: #999999;
  background: rgb(242, 242, 242);
  padding: 14rpx 30rpx;
  display: block;
  float: left;
}

.doc_bs {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-left: 0;
  border-right: 0;
}
.doc_bs view:last-child {
  border: 0px;
}

.doc_b {
  width: 720rpx;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
  margin: 0 0 0 30rpx;
}

.doc_bl {
  width: 64rpx;
  height: 64rpx;
  display: block;
  float: left;
  margin: 26rpx 20rpx 22rpx 0;
}

.doc_bt {
  width: auto;
  height: 42rpx;
  line-height: 42rpx;
  font-size: 34rpx;
  display: block;
  float: left;
  color: #000000;
  margin: 37rpx 0 0 0;
}

.doc_br {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: right;
  margin: 32rpx 30rpx 32rpx 0;
}

.doc_b2 {
  width: 450rpx;
  height: auto;
  display: block;
  float: left;
}

.doc_b2t {
  width: 450rpx;
  height: 42rpx;
  font-size: 34rpx;
  line-height: 42rpx;
  color: #000000;
  margin: 20rpx 0 4rpx;
  display: block;
  float: left;
}

.doc_b2t {
  display: block;
  float: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.doc_b2f {
  width: 450rpx;
  height: 32rpx;
  font-size: 24rpx;
  line-height: 32rpx;
  color: #999999;
  margin: 0rpx 0 rpx;
  display: block;
  float: left;
}

.index {
  background: #ffffff;
  width: 100%;
  height: auto;
}

.jtop {
  width: 100%;
  height: 88rpx;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: inset 0px -1px 0px #dddddd;
}

.jtop_l {
  width: auto;
  height: auto;
  display: block;
  float: left;
}

.jtop_r {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: right;
  margin: 20rpx 20rpx 0 0;
}

.jtop_rl {
  margin: 20rpx 30rpx 0 0;
}

.jtop_r image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
}

.jtop_c {
  width: 70%;
  height: 48rpx;
  line-height: 48rpx;
  display: block;
  float: left;
  position: fixed;
  top: 20rpx;
  left: 15%;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
}

.jtop_c image {
  width: 36rpx;
  height: 36rpx;
  display: inline-block;
  float: none;
  margin-bottom: -5rpx;
  margin-left: 5rpx;
}

.jtop_b {
  width: 100%;
  height: auto;
  background: #ffffff;
  position: fixed;
  top: 88rpx;
  left: 0;
  z-index: 1001;
}

.tc {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: block;
}

.tc_box {
  width: 540rpx;
  height: auto;
  background: #ffffff;
  border-radius: 14rpx;
  margin: 460rpx 105rpx 0;
  position: relative;
  z-index: 10001;
  overflow: hidden;
}

.tc_boxt {
  width: 100%;
  height: 44rpx;
  font-size: 36rpx;
  line-height: 44rpx;
  display: block;
  float: left;
  text-align: center;
  margin: 40rpx 0 20rpx;
  color: #000000;
}

.tc_boxtc {
  width: 100%;
  height: 36rpx;
  font-size: 28rpx;
  line-height: 36rpx;
  display: block;
  float: left;
  text-align: center;
  margin: 0rpx 0 30rpx;
  color: #666666;
}

.tc_boxi {
  width: 460rpx;
  height: 88rpx;
  background: #ffffff;
  border-radius: 8rpx;
  border: 1px solid #dddddd;
  display: block;
  float: left;
  margin: 0rpx 40rpx 22rpx 40rpx;
}

.tc_boxi input {
  width: 70%;
  height: 48rpx;
  margin: 20rpx 5%;
  font-size: 32rpx;
  color: #000000;
  float: left;
}

.tc_boxi image {
  width: 36rpx;
  height: 36rpx;
  display: block;
  float: right;
  margin: 26rpx 20rpx 0rpx 0;
}

.tc_f {
  width: 100%;
  height: 100rpx;
  display: block;
  float: left;
  border-top: 1px solid #dcdee3;
  margin: 20rpx 0 0;
}

.tc_fl {
  width: 269rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #256aff;
  display: block;
  float: left;
  border-right: 1px solid #dcdee3;
}

.tc_fr {
  width: 100%;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #256aff;
  display: block;
  float: left;
}

.tc_fr2 {
  width: 269rpx;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 36rpx;
  color: #eb5342;
  display: block;
  float: left;
}

.noc {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  margin: 400rpx 0 0 0;
}

.noc image {
  width: 120rpx;
  height: 120rpx;
  display: block;
  float: left;
  margin: 0 315rpx 20rpx;
}

.noc span {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  font-size: 32rpx;
  line-height: 40rpx;
  text-align: center;
  color: #999999;
}
</style>
